<template>
	<view>
		<input type="text" v-model.number="a" />
		<input type="text" v-model.number="b" />
		<button @click="sum">调用云函数</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				a: 0,
				b: 0
			}
		},
		methods: {
			async sum() {
				const resp = await uniCloud.callFunction({
					name: 'sum',
					data: {
						a: this.a,
						b: this.b
					}
				})
				console.log(resp)
			}
		},

	}
</script>

<style>

</style>
